package com.hzqy.service.epg;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 边锋活动配置
 */
public class AcBfCommon {
	/**
	 * 签到奖励id
	 */
	public static int[]  AWARD_ID= {0,3,1,3,2,4,1,
									2,3,1,3,1,0,2,
									2,3,1,3,1,2,3,
									1,1,3,4,1,3,4,
									2,1,3
									};
	/**
	 * 签到奖励名称
	 */
	public static String[] AWARD_NAME = {"玩具1","玩具2","玩具3","玩具4","玩具5"};
	
	/**
	 * 本月几号
	 * @return 当前几号
	 */
	public static int monthDayNumber() {
		SimpleDateFormat sdf = new SimpleDateFormat("dd");
		Date d = new Date();
		String dd = sdf.format(d);
		int num = Integer.parseInt(dd);
		return num;
	}
	
	public static String prize() {
		String prize = AWARD_NAME[AWARD_ID[monthDayNumber()]];
		return prize;
	}
	
	public static void main(String[] args) {
		SimpleDateFormat sdf = new SimpleDateFormat("dd");
		Date d = new Date();
		String dd = sdf.format(d);
		int i = Integer.parseInt("01");
		System.out.println(dd+"|"+i);
	}
}
